package model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.ForeignKey;


@Entity
@Table(name = "pessoa_fisica")
@ForeignKey(name = "fk_pessoa")
public class PessoaFisica extends Pessoa{

	@Column(length = 12)
	private String cpf;
	
	@Column(length = 2)
	private String sexo;

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public String getSexo() {
		return sexo;
	}

	public void setSexo(String sexo) {
		this.sexo = sexo;
	}
	
	@Override
	public String toString(){
		return this.getNome();
	}
}
